/* Webhooks列表页面样式修复 */

/* 渠道标签样式 */
.webhook-channel {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: white !important;
    text-align: center !important;
    background-color: #495057 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3) !important;
}

.webhook-channel.platform {
    background-color: #0d6efd !important;
}

.webhook-channel.feishu {
    background-color: #198754 !important;
}

.webhook-channel.wework {
    background-color: #6f42c1 !important;
}

/* 触发事件样式 */
.webhook-events {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.webhook-event {
    display: inline-block !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: white !important;
    background-color: #0d6efd !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3) !important;
}

.webhook-event.alarm {
    background-color: #dc3545 !important;
}

.webhook-event.announcement {
    background-color: #0d6efd !important;
}

/* 状态标签样式 */
.webhook-status {
    display: inline-block !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: white !important;
    background-color: #6c757d !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3) !important;
}

.webhook-status.active {
    background-color: #198754 !important;
}

.webhook-status.inactive {
    background-color: #dc3545 !important;
}

/* 表格样式优化 */
#project-webhooks-table {
    margin-bottom: 2rem !important;
}

#project-webhooks-table th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
    padding: 12px 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

#project-webhooks-table td {
    padding: 12px 8px !important;
    vertical-align: middle !important;
    text-align: center !important;
}

/* URL样式 */
.webhook-url {
    max-width: 300px !important;
    word-break: break-all !important;
    font-size: 12px !important;
    color: #6c757d !important;
    text-align: left !important;
}

/* 时间样式 */
.webhook-datetime {
    font-size: 13px !important;
    color: #666 !important;
}

.never-triggered {
    font-size: 13px !important;
    color: #999 !important;
    font-style: italic !important;
}